package com.ticket.sass.admin.dto.input.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.*;

/**
 * @author ywb
 * @date 2021-12-17 11:00
 */
@Data
@ApiModel(value = "特殊用户新增DTO", description = "按照要求填写")
public class SpecialUserAddInput {

    @ApiModelProperty(value = "手机号", required = true)
    @NotBlank(message = "手机号码不能为空")
    @Size(min = 11, max = 11, message = "手机号码长度不正确")
    @Pattern(regexp = "^(((13[0-9])|(14[579])|(15([0-3]|[5-9]))|(16[6])|(17[0135678])|(18[0-9])|(19[89]))\\d{8})$", message = "手机号格式错误")
    private String cellphone;

    @ApiModelProperty(value = "特殊类型：0 体验人员", required = true)
    @Min(value = 0, message = "暂时只能是0")
    @Max(value = 0, message = "暂时只能是0")
    private Integer type;
}
